#include "Binary/Bit_Util.h"

#include <stdio.h>

int bit_util_test()
{
	printf("Testing that bit_count_simple == bit_count_lut\n");

	for (uint i = 0; i < 0xf00000; ++i)
	{
		if ((i % 0xf0000) == 0)
			printf(".");
		if ((i % 0xf00000) == 0)
			printf(":");
		if ((i % 0xf000000) == 0)
			printf("*");

		if (bit_count_simple(i) != bit_count_lut(i))
			printf("\nbit_count_simple != bit_count_lut with %d\n", i);
	}

	getchar();

	return 0;
}